<?php
session_start();
if (isset($_GET['probe'])) {
	if (trim($_GET['probe']) != "") {
		is (is_numeric($_GET['probe'])) {
			include("inclues/sql.php.inc");
			$sql = "DELETE from temps where temp_index=$probe";
			$result = mysql_query($sql,$connect);
			$sql = "DELETE FROM last_readings where temp_index=$probe";
			$result = mysql_query($sql,$connect);
			$sql = "DELETE FROM currenttemps where temp_index=$probe";
			$result = mysql_query($sql,$connect);
		}
	}
}
header("Location: index.php?probe=".$_SESSION['probe']);
?>
